﻿@{
    Layout = null;
}
@using MvcMall.AdminPortal.Controllers.AdminMenu.ViewModels;
@model List<AdminMenuDtoModel>
<!DOCTYPE html>
<html>
<head>
    <title>菜单管理</title>
    <link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.min.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs({
                cache: false,
                ajaxOptions: {
                    error: function (xhr, status, index, anchor) {
                        $(anchor.hash).html("系统繁忙,请稍候再试");
                    }
                }
            });
        });
    </script>
</head>
<body>
    <div id="tabs">
        <ul>
            <li><a href="#menuList">菜单列表</a> </li>
        </ul>
        <div id="menuList">
            <table width="100%">
                <tr>
                    <th>
                        菜单编号
                    </th>
                    <th>
                        所属模块
                    </th>
                    <th>
                        菜单名称
                    </th>
                    <th>
                        Controller
                    </th>
                    <th>
                        Action
                    </th>
                    <th>
                        排序
                    </th>
                    <th>
                    </th>
                </tr>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>
                            @item.MenuId
                        </td>
                        <td>
                            @item.ModulName
                        </td>
                        <td>
                            @item.MenuName
                        </td>
                        <td>
                            @item.ControllerName
                        </td>
                        <td>
                            @item.ActionName
                        </td>
                        <td>
                            @item.SortOrder
                        </td>
                        <td>
                            @Html.ActionLink("查看", "Save", new { @menuId = item.MenuId })
                            @Html.ActionLink("修改", "Save", new { @menuId = item.MenuId })
                        </td>
                    </tr>
                }
            </table>
        </div>
    </div>
</body>
</html>
